<template>
   <div class="tab">
      <div v-for="(Item, index) in tab" :key="index" class="tab-item">
        <router-link :to="{ path: Item.name }">{{ Item.tab_name }}</router-link>
      </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
             tab: [
                { tab_name: "商品", name: "sell" },
                { tab_name: "评价", name: "evaluate" },
                { tab_name: "商家", name: "seller" },
            ],
        }
    }
}
</script>

<style>

.tab {
  display: flex;
  align-items: center;
  height: 40px;
  position: relative;
}
.tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: rgba(7, 17, 237, 0.1);
}
.tab-item {
  flex: 1;
  text-align: center;
}
.tab-item a {
  display: block;
  line-height: 14px;
  font-size: 14px;
}

</style>